﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Program
    {

        static void Main(string[] args)
        {
            Console.WriteLine("Enter number:");
            int a = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Number of combination : {0}", WriteNumberOfComb(1, a));
            WriteFibNum(a);
            Console.ReadKey();

        }
        static int WriteNumberOfComb(int n, int a)
        {
            int num = 0;
            while (n < a)
            {
                if (a % n == 0)
                {
                    num++;
                }
                n++;
            }
            return num;
        }
        static void WriteFibNum(int max)
        {
            int l = 0;
            int n = 1;
            int b = 0;
            while (true)
            {
                b = l;
                l = n;
                n = b + l;
                if (n > max)
                {
                    break;
                }
                Console.WriteLine(" Fibonache {0}", n);

            }

        }
    }
}
